#include <QtGui/QMainWindow>
#include <QtGui>

class CheckName : public QDialog {
Q_OBJECT
public:
CheckName(QWidget *parent=0);
     void InitWindow ();
 protected:
     virtual void closeEvent(QCloseEvent *event);
 private slots:
     bool check_password();
     bool name_ok();
 private:
     int user_id;
     QLineEdit *name;
     QLineEdit *password;
     QTextEdit *scr;
     QPushButton *btnStart;
     QPushButton *btnAcsOk;
     QPushButton *btnAcsOtmena;

};
